#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QStringList>

class BuyCatalog;
class QPushButton;

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    virtual ~MainWindow();
    void listPurchases();

private slots:
    void playLevel();
    void catalogClosed();
    void mainWindowClose();
    void mainWindowResetPurchases();
    void mainWindowGotoStore();

public:
    static QString getPurchaseDir();
    static QString getPurchaseUri(const QString& productID);

private:
    //data
    QPushButton* getButton(QString& fname);
    QStringList purchasedContent;
    BuyCatalog* catalog;
	
private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
